const components = import.meta.glob("./**.vue");
import { defineAsyncComponent } from "vue";
export default function install(app) {
  for (const [key, value] of Object.entries(components)) {
    // console.log(key,'key++++++++++++++++++++++++++++++++');
    const name = key.slice(key.lastIndexOf('/') + 1, key.lastIndexOf('.'));
    // console.log(name,'name+++++++++++++++++++++++++++++');
    app.component(name, defineAsyncComponent(value));
  }
}
